﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TemplateDemo.Data
{
    public class User
    {
        public int Id { get; set; }
        [StringLength(64)]
        public string Creator { get; set; }
        public DateTime CreateTime { get; set; } = DateTime.Now;
        public bool IsDeleted { get; set; }
      
        [StringLength(128)]
        public string UserName { get; set; }
        [StringLength(128)]
        public string Sale { get; set; }
        [StringLength(128)]
        public string PassWord { get; set; }
        /// <summary>
        /// 用户类型
        /// </summary>
        [StringLength(128)]
        public string UserType { get; set; }

        [StringLength(32)]
        public string Phone { get; set; }
        [StringLength(128)]
        public string Email { get; set; }

        [StringLength(64)]
        public string Name { get; set; }
        /// <summary>
        /// MD5 加密 秘钥
        /// </summary>
        [StringLength(128)]
        public string Secretkey { get; set; }
    }
}
